<?php
class App_Source_Media_Status
{
	const NotProcessed = 0;
	const HasError = 1;
	const Ready = 2;

	static private $_names = array(
				self::NotProcessed => 'IN_PROGRESS',
				self::HasError => 'PROCESSED_WITH_ERRORS',
				self::Ready => 'READY',
		);

	static public function GetList()
	{
		return self::$_names;
	}

	static public function Get($type)
	{
		if (!isset(self::$_names[$type])) return false;
		return Mozg_Lang::_(self::$_names[$type]);
	}
}